package org.sky.logger.mdc;

import org.sky.logger.util.Constant;
import org.slf4j.MDC;

public class LogMdc {

	public static void init(String logid, String point) {
		MDC.put(Constant.LogId, logid);
		MDC.put(Constant.Pointcut, point);
	}

	public static void clear() {
		MDC.remove(Constant.LogId);
		MDC.remove(Constant.Pointcut);
	}

	public static String get(String key) {
		return MDC.get(key);
	}

}
